Skip to content

Resize online#13

Draft
AnthoineB wants to merge 2 commits intoxcp-ng:26.1-lcmfrom
AnthoineB:abo-resize-online-support
Draft

Resize online#13
AnthoineB wants to merge 2 commits intoxcp-ng:26.1-lcmfrom
AnthoineB:abo-resize-online-support

Conversation

@AnthoineB
Copy link
Copy Markdown
Member

@AnthoineB AnthoineB commented Jan 29, 2026

Re-enable resize online feature.

This PR is a way to discuss how can I improve code and is it at a level of upstream acceptance?

2 commits:

  1. Allow VDI resize_online capability without xenstore notification.
  2. Modify VBD size with resize_online capability and xenstord notification.

Tested on a FileSR.

May I have your opinion?

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@vates.tech>
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@vates.tech>
@AnthoineB AnthoineB self-assigned this Jan 29, 2026
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 21473266724

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 80.459%

Totals Coverage Status
Change from base Build 21465386780: 0.0%
Covered Lines: 3504
Relevant Lines: 4355

💛 - Coveralls

Comment on lines +4327 to +4329
debug "xenstore-write %s = %Ld" sectors_path new_size;
xs.Xs.write sectors_path (Int64.to_string new_size);
debug "xenstore-write %s" resize_path;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there's any need for these xenstore write debug lines, writes get logged by xenstored anyway

Comment thread ocaml/idl/datamodel.ml
, "Online VDI resize is not supported by any of the storage backends."
)
]
call ~name:"resize_online" ~in_oss_since:None ~lifecycle:[]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will cause problems, we can't simply rewrite history. we have to think of a way to reintroduce this

Comment thread ocaml/xapi/xapi_vdi.ml
Comment on lines +34 to -39
| `resize | `resize_online ->
Some Vdi_resize
| `update ->
Some Vdi_update
| `resize_online ->
Some Vdi_resize_online
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this change happening?

@psafont
Copy link
Copy Markdown

psafont commented Jan 29, 2026

There's barely any context in the opening message and the commit messages explaining the needs to reintroduce this feature. I expect this feature was removed for several reasons, and we should prepare to reason why it needs to be reintroduced to explain to upstream maintainers

@psafont psafont changed the base branch from master to 26.1-lcm January 29, 2026 10:53
@psafont
Copy link
Copy Markdown

psafont commented Jan 29, 2026

This works needs to be rebased on top of the 26.1-lcm branch

in
List.iter
(fun vbd_record ->
let vbd_uuid = (field_lookup vbd_record.fields "uuid").get () in
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is slightly unusual to use the UUID for lookup and it would be more paradigmatic to use the reference.

@AnthoineB AnthoineB marked this pull request as draft January 29, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants